/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bgIntlgn.client.entity.custom;

import yuhuibear.poat.annotations.action.AutoGenerateValue;
import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

/**
 * 用户联系人实体
 * 
 * @author shenzhang
 */
@Table(name = "contactors", constrain = "")
public class Contactor implements Bean {

	@AutoGenerateValue(skipOnNull = true, sqlToGet = "select currval('contactors_id_seq')")
	@Field(name = "id", type = "bigserial", constrain = " primary key")
	private Long id;

	@Field(name = "custom_id", type = "int8", constrain = " not null references customs(id)  on update cascade ")
	private Long customId;

	@Field(name = "name", type = "varchar(20)", constrain = "not null")
	private String name;

	@Field(name = "nick_name", type = "varchar(20)", constrain = "")
	private String nickName;

	@Field(name = "tel", type = "varchar(40)", constrain = "")
	private String tel;

	@Field(name = "mobile_phone", type = "varchar(40)", constrain = "")
	private String mobilePhone;

	@Field(name = "fax", type = "varchar(40)", constrain = "")
	private String fax;

	@Field(name = "address", type = "varchar(50)", constrain = "")
	private String address;

	@Field(name = "comment", type = "varchar(500)", constrain = "")
	private String comment;

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCustomId() {
		return customId;
	}

	public void setCustomId(Long customId) {
		this.customId = customId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

}
